<!DOCTYPE html>
<html class="ui-mobile"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><!--<base href="http://hft.evergrande.com/wechatPage/shareHouse.html?companyId=17&amp;id=9d996385faad4ae6870a8a84928fc400&amp;from=H5">--><base href=".">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<meta name="format-detection" content="telephone=no, email=no">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>{:$rs[title]}-楼盘详情</title>
<link rel="stylesheet" href="tpl/static_index/css/jquery.mobile-1.3.0.min.css">
<link rel="stylesheet" href="tpl/static_index/css/idangerous.swiper.css">
<link rel="stylesheet" href="tpl/static_index/css/common.css">
<link rel="stylesheet" href="tpl/static_index/css/shareHouse.css">
<link rel="stylesheet" href="tpl/static_index/css/cssReset.css">
<script type="text/javascript" src="tpl/static_index/resource/js/sea.js"></script>
<script type="text/javascript" src="tpl/static_index/resource/js/router.js"></script>
<script type="text/javascript">
	seajs.use("shareHouse");
</script>

	</head>

	<body style="background: rgb(229, 229, 229); display: block;" class="ui-mobile-viewport ui-overlay-c">
		<div id="share_house_page" data-role="page" data-dom-cache="true" class="upgrade ui-page ui-body-c ui-page-active" data-url="share_house_page" tabindex="0" style="min-height: 736px;">

			<div data-role="content" class="content-div ui-content" id="share_house_content" role="main" style="overflow: hidden;">
				<div style="width: 100%; height: auto; float: left; transition-property: transform; transform-origin: 0px 0px 0px; transform: translate(0px, 0px) scale(1);">
					<div class="info_div" id="info_div">
						<div class="info_content" id="info_content">
							<div class="tabBanner">
								<div class="swiper-container" id="swiper-container-top">
									<div class="swiper-wrapper" style="width: 100%; height: 232.875px;">
										<div class="swiper-slide swiper-slide-visible swiper-slide-active" style="width: 100%; height: 232.875px;">
											<img src="{:$rs[thumb]['files']['filename']}" style="max-width: 414px;">
										</div>
										</div>
								</div>
							</div>

<style>
.kehuadd{
	float: right;
    font-size: 12px;
    height: 28px;
    line-height: 28px;
    display: block;
    width: 60%;
    border-radius: 5px;
    background-color: #f75549;
    background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0.5,#fc6156),to(#f75549));
    color: #fff;
    border:1px solid  #f75549;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
	text-align:center;
	text-shadow:0!important;
	font-weight:0!important;
}
</style>

							<div class="nameprice">
								<div class="tuijian" id="recommend_button">
									佣金：{:$rs[yongjin]}元  
								</div>
								<div class="search-building" id="search_button">
									<a href="{if($_SESSION['user_id'])}{:site_url('recommend')}&lpid={:$rs[id]}{else}{:site_url('register')}{end}" target="_self" class="kehuadd" style="text-shadow:none;font-weight:none;color:white;">+立即推荐</a>
								</div>
							</div>

							<div class="infodiv" id="showName">
								<div class="block" id="block">{:$rs[title]}</div>

								<div class="infodiv1 clearborder" style="height:60px;max-height:60px;">
									<span style="margin-right: 16px;"><img src="tpl/static_index/images2/ico_1@2x.png"></span>
									<span id="attentionHeat">{:$rs[hits]}</span>人查看 |
									<span>楼盘均价：{:$rs[price]}元</span>
									<br>
									<span>
									
									<span id="hotline">咨询电话：<img src="tpl/static_index/images2/telIcon02@2x.png"><a href="tel:{:$rs[lpphone]}">{:$rs[lpphone]}</a></span>
									</span>
								</div>
								
							</div>
							
							<div class="imgshow" id="imgshowdiv" style="overflow: hidden; display: block;">
								<div class="topimg_scroll_info" id="topimg_scroll_div" style="width:100%;transition-property: transform; transform-origin: 0px 0px 0px; transform: translate(0px, 0px) scale(1);">
								
									
									
<!-- if($rs[thumb4]) -->
<!-- run:$item = $rs[thumb4] -->
<!-- $item AS $key=>$value -->									
<div class="imginfo" style="width:30%;margin-right:1.2%;margin-left:1.2%;"  topimg="{:$key}">
	<div class="imgpic"><img class="img_1" src="{:$value['thumb']}"></div>
	<div class="greytext">{:$value['title']}</div>
</div>
<!-- end --> 
<!-- run:unset($item) -->   
<!-- else -->
<!-- end -->
									

									
								</div>
							</div>

							<div class="content_text" id="content_discount">
								<div class="text_title redline">
									<img src="tpl/static_index/images2/titBg@2x.png"><span>购房优惠</span>
								</div>
								<div class="text_detail" id="detail_discount">
									<p id="discountDetails">
										<label><img src="tpl/static_index/images2/icon_circle@2x.png">优惠内容：</label>
										<span>{:$rs[youhui]}</span>
									</p>
								</div>
							</div>

							<!--新增VR看房-->

							<div class="content_text" id="content_pic">
								<div class="text_title">
									<div class="bgorangeimg">户型图</div>
								</div>
								<div class="pic_detail" id="pic_detail" style="overflow: hidden;">
									<div class="pic_scroll_info" id="pic_scroll_info" style="transition-property: transform; transform-origin: 0px 0px 0px; transform: translate(-336px, 0px) scale(1);">
<!--									
<div class="img_div" imageindex="1" style="width: 111.78px; height: 141.78px;">
<img src="tpl/static_index/images2/5456efcc-15d7-40a3-b18b-20dddf416bc2.jpg" style="width: 111.78px; height: 111.78px;">
<div class="img_text">D户型&nbsp;&nbsp;建筑面积约94.09㎡</div>
<div class="img_title">两房两厅一卫</div>
</div>
-->
									
<!-- if($rs[thumb2]) -->
<!-- run:$item = $rs[thumb2] -->
<!-- $item AS $key=>$value -->			
<div class="img_div" imageindex="$key" style="width: 111.78px; height: 141.78px;">
<a href="{:$value['big']}" target="_self">
	<img src="{:$value['thumb']}" style="width: 111.78px; height: 111.78px;">
	<div class="img_text">{:$value['title']}</div>
</a>
</div>
<!-- end --> 
<!-- run:unset($item) -->   
<!-- else -->
<!-- end -->
							
									
									
									</div>
								</div>
							</div>

							<div class="content_text" id="content_introduce" style="display: none;">
								<div class="text_title">
									<div class="bgredimg">负责人信息</div>
								</div>
								<div class="text_detail" id="detail_introduce1">
									<ul class="fzr_info"><li><span>...</span><span>...</span></li></ul>
								</div>
							</div>
							<!--<div class="content_text" id="full_viewhouse">
								<div class="text_title redline">
									<img src="resource/tpl/static_index/css/tpl/static_index/images2/sharehouse/titBg@2x.png"><span>全景看房</span>
								</div>
								<div class="text_detail" id="full_house">
									<video src="" poster="resource/tpl/static_index/css/tpl/static_index/images2/sharehouse/qjkfImg@2x.png" width="100%"></video>
								</div>
							</div>-->
							<div class="content_text" id="content_address">
								<div class="text_title">
									<div class="bgredimg">项目位置</div>
								</div>
								<div class="text_detail" id="detail_address">
									<div id="map_static" class="map_static" style="display:none">
										<img id="imgUrl_map" src="">
									</div>
									<img class="img_icon" src="tpl/static_index/images2/map@2x.png">
									<span>{:$rs[addr]}</span>
								</div>
							</div>


							<div class="content_text" id="detail_introducebody">
								<div class="text_title">
									<div class="bgredimg">楼盘介绍</div>
								</div>
								<div class="text_detail" id="detail_introduce">
									{:$rs[content]}
								</div>
								<div class="updownmenu">
									<img src="tpl/static_index/images2/arrowUp@2x.png">
								</div>
							</div>

							<div class="content_text" id="shop_merchantsbody" style="display:none">
								<div class="text_title">
									<div class="bgorangeimg">旺铺招商</div>
								</div>
								<div class="text_detail" id="shop_merchants">
									<label>招商优惠：</label> <span id="preferential">以省公司当前执行优惠政策为准</span>
									<label>招商热线：</label><span id="merchants_phone"><img class="img_icon" src="tpl/static_index/images2/telIcon@2x.png"><a href="tel:%E9%99%88%E7%BB%8F%E7%90%86 13419620276  %E5%BC%A0%E7%BB%8F%E7%90%86 17786016090">陈经理 13419620276  张经理 17786016090</a></span>
									<label>已&nbsp;&nbsp;开&nbsp;业：</label> <span id="business">36.37号楼底商恒大邻里汇商业街，恒大城市广场一期，恒大影院已盛大开业！</span>
									<label>即将开业：</label> <span id="opening_business">恒大城市广场</span>
									<label>业态规划：</label> <span id="business_planning">精品零售、生活服务、餐饮娱乐、银行金融、亲子儿童、休闲游乐</span>
									<label>面积区段：</label> <span id="area_section">20-1500㎡</span>
									<label>交付时间：</label> <span id="delivery_time">2017-6-30</span>
								</div>
								<div class="updownmenu">
									<img src="tpl/static_index/images2/arrowUp@2x.png">
								</div>
							</div>

						</div>
					</div>
					<div id="showFooterMask" style="height: 40px; width: 100%;"></div>
				</div>
			</div>
			<div class="select_div" id="select_div0">
				<div class="select_top">
					<span>暂未登录，无法收藏</span>
					<i onclick="ShareHouse.closeTip()">×</i>
				</div>
				<div class="select_bottom">
					<div class="confirm_btn" onclick="ShareHouse.goLogin()">前往登录</div>
				</div>
			</div>
			<div class="select_mask_active" id="select_mask_active"></div>
			<div id="shareHouse_error" class="shareHouse_error_div">
				<span id="shareHouse_error_word" class="shareHouse_error"></span>
			</div>
			<div id="pic_show" style="overflow: hidden;">
				<div class="pic_show_scroll" id="pic_show_sroll" style="transition-property: transform; transform-origin: 0px 0px 0px; transform: translate(0px, 0px);"></div>
			</div>
			<div id="allmap" class="allmap"></div>
			<div class="back_map" id="back_map">
				<img id="back_icon" src="tpl/static_index/images2/ico_back.png">
				<a class="i-class ui-link" href="daohang:{&quot;latitude&quot;:30.663868,&quot;locationName&quot;:&quot;%E6%AD%A6%E6%B1%89%E5%B8%82%E4%B8%9C%E8%A5%BF%E6%B9%96%E5%8C%BA%E9%87%91%E9%93%B6%E6%B9%96%E7%8E%AF%E6%B9%96%E8%B7%AF43%E5%8F%B7&quot;,&quot;longitude&quot;:114.17701}">导航</a>
			</div>
			<!-- <div class="wechat_menu" id="wechat_menu">
				<a data-role="button" class="wechat_btn" id="house_btn" href="javascript:Common.goPage('1')"><img src="resource/tpl/static_index/css/tpl/static_index/images2/bottomtab/icon01At@2x.png"><span class="red">楼盘</span>
				</a>
				<a data-role="button" class="wechat_btn" id="info_btn" href="javascript:Common.showChild('3')"><img src="resource/tpl/static_index/css/tpl/static_index/images2/bottomtab/icon02@2x.png">资讯
				</a>
				<a data-role="button" class="wechat_btn" id="mid_btn" href="javascript:Common.showChild('2')"><img src="resource/tpl/static_index/css/tpl/static_index/images2/bottomtab/ico03@2x.png">推荐
				</a>
				<a data-role="button" class="wechat_btn" id="my_btn" href="javascript:Common.showChild('1')"><img src="resource/tpl/static_index/css/tpl/static_index/images2/bottomtab/icon04@2x.png">我的
				</a>
			</div>
			<div class="child_menu" id="mid_menu">
				<a data-role="button" class="child_btn" id="register_btn" href="javascript:Common.goPage('2')">我要推荐</a><a data-role="button" class="child_btn" id="bespeak_btn" href="javascript:Common.goPage('7')">我要预约</a><img src="resource/tpl/static_index/css/tpl/static_index/images2/detail_wechat.png">
			</div>
			<div class="child_menu" id="info_menu">
				<a data-role="button" class="child_btn" id="hddt_btn" href="javascript:Common.goPage('8')">恒大动态</a><a data-role="button" class="child_btn" id="lphd_btn" href="javascript:Common.goPage('9')">楼盘活动</a>
				<img src="resource/tpl/static_index/css/tpl/static_index/images2/detail_wechat.png">
			</div>
			<div class="child_menu" id="child_menu">
				<a data-role="button" class="child_btn" id="register_btn" href="javascript:Common.goPage('3')">马上注册</a><a data-role="button" class="child_btn" id="login_btn" href="javascript:Common.goPage('4')">会员登录</a> <a data-role="button" class="child_btn" id="account_btn"
					href="javascript:Common.goPage('5')">我的帐号</a><a data-role="button" class="child_btn" id="download_btn" href="javascript:Common.goPage('6')">下载APP</a><img src="resource/tpl/static_index/css/tpl/static_index/images2/detail_wechat.png">
			</div> -->
			<div class="mask_div" style="display: none;"></div>
		
			<div id="footer-ment">
				<div class="wechat_menu" id="wechat_menu">
					<a data-role="button" class="wechat_btn ui-btn ui-btn-up-c ui-shadow ui-btn-corner-all" id="house_btn" href="/" target="_self"><span class="ui-btn-inner"><span class="ui-btn-text"><img src="tpl/static_index/images2/icon01At@2x.png"><span class="red">楼盘</span></span></span></a>
					<a data-role="button" class="wechat_btn ui-btn ui-btn-up-c ui-shadow ui-btn-corner-all" id="mid_btn" target="_self" href="{if($_SESSION['user_id'])}{:site_url('recommend')}&lpid={:$rs[id]}{else}{:site_url('register')}{end}" ><span class="ui-btn-inner"><span class="ui-btn-text"><img src="tpl/static_index/images2/ico03@2x.png">推荐</span></span></a>
					<a data-role="button" class="wechat_btn ui-btn ui-btn-up-c ui-shadow ui-btn-corner-all" id="my_btn" target="_self" href="{if($_SESSION['user_id'])}{:site_url('home')}&f=my{else}{:site_url('login')}{end}"  ><span class="ui-btn-inner"><span class="ui-btn-text"><img src="tpl/static_index/images2/icon04@2x.png">我的</span></span></a>
				</div>
			</div>
	
</body>
<?php
	include(LIBS.'/WeixinJs/WeixinJs.class.php');  
	$weixinJs = new \WeixinJs("wxa9adc2cde1638e75","ac5418ff04ffcc3e0bb05c38bff32821");
	$signPackage = $weixinJs->GetSignPackage();
	$appId = $signPackage['appId'];
	$timestamp = $signPackage['timestamp'];
	$nonceStr = $signPackage['nonceStr'];
	$signature = $signPackage['signature'];
	
	$signPackage['sharetitle'] = $rs['title']."-随州房产超市";
	$signPackage['slink'] = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
	$signPackage['sharedesc'] = "好房推荐，你值得拥有！";
	$signPackage['sharepic'] = $_sys['siteurl'].$rs['thumb']['files']['filename'];

?>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
	// 注意：所有的JS接口只能在公众号绑定的域名下调用，公众号开发者需要先登录微信公众平台进入“公众号设置”的“功能设置”里填写“JS接口安全域名”。 
	// 如果发现在 Android 不能分享自定义内容，请到官网下载最新的包覆盖安装，Android 自定义分享接口需升级至 6.0.2.58 版本及以上。
	// 完整 JS-SDK 文档地址：http://mp.weixin.qq.com/wiki/7/aaa137b55fb2e0456bf8dd9148dd613f.html
	wx.config({
		debug: false,
		appId: '<?php echo $signPackage['appId'];?>',
		timestamp: <?php echo $signPackage['timestamp'];?>,
		nonceStr: '<?php echo $signPackage['nonceStr'];?>',
		signature: '<?php echo $signPackage['signature'];?>',
		jsApiList: [
		'checkJsApi',
		'onMenuShareTimeline',
		'onMenuShareAppMessage'
		]
	});
	
	wx.ready(function () {
		// 在这里调用 API
		//监听“分享到朋友圈”按钮点击
		//desc:"<?php echo $signPackage['sharedesc'];?>",
		wx.onMenuShareTimeline({
			title: "<?php echo $signPackage['sharetitle'];?>",
			link:"<?php echo $signPackage['slink'];?>",
			imgUrl: "<?php echo $signPackage['sharepic'];?>",
			trigger: function (res) {
				// 不要尝试在trigger中使用ajax异步请求修改本次分享的内容，因为客户端分享操作是一个同步操作，这时候使用ajax的回包会还没有返回
				1;
			},
			success: function (res) {
				var pars = "";
				var parsprams = "";
				var randomcode = Math.random() * 100000;
				parsprams = pars + "&code=" + randomcode + "&f=updategroup";
				$.ajax({
					url: 'index.php?c=home',
					type: "Get",
					data: parsprams,
					beforeSend: function () { },
					success: function (state) {
						alert(state);
					}
				});		
			},
			cancel: function (res) {
				alert("您取消了分享！");
			}
		});
		//监听“发送给朋友”按钮点击
		wx.onMenuShareAppMessage({
			title: "<?php echo $signPackage['sharetitle'];?>",
			link:"<?php echo $signPackage['slink'];?>",
			desc:"<?php echo $signPackage['sharedesc'];?>",
			imgUrl: "<?php echo $signPackage['sharepic'];?>",
			trigger: function (res) {
				// 不要尝试在trigger中使用ajax异步请求修改本次分享的内容，因为客户端分享操作是一个同步操作，这时候使用ajax的回包会还没有返回
				1;
			},
			success: function (res) {
				var pars = "";
				var parsprams = "";
				var randomcode = Math.random() * 100000;
				parsprams = pars + "&code=" + randomcode + "&f=updategroup";
				$.ajax({
					url: 'index.php?c=home',
					type: "Get",
					data: parsprams,
					beforeSend: function () { },
					success: function (state) {
						alert(state);
						window.reload();
					}
				});		
			},
			cancel: function (res) {
				alert("您取消了分享！");
			}
		});
	});
</script>


</html>

